package com.mayikt.consumer;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author 蚂蚁课堂创始人-余胜军QQ644064779
 * @title: OrderDlxConsumer
 * @description: 每特教育独创第五期互联网架构课程
 * @date 2019/12/1221:35
 */
@Component
public class OrderDlxConsumer {

    /**
     * 监听我们的死信队列
     *
     * @return
     */
    @RabbitListener(queues = "my_dlx_queue")
    public void orderConsumer(String msg) {
        System.out.println("死信队列获取消息:" + msg);
    }
}
